.class Lcom/xingbook/ui/o;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/InsetVideoView;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/ui/o;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/16 v2, 0x8

    const/4 v4, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/o;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Lcom/xingbook/ui/InsetVideoView;

    if-nez v1, :cond_0

    :goto_0
    return-void

    :cond_0
    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_1
    :goto_1
    :pswitch_0
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :pswitch_1
    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->a(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->b(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u6b63\u5728\u52a0\u8f7d\u00b7\u00b7\u00b7"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    :pswitch_2
    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->c(Lcom/xingbook/ui/InsetVideoView;)Lcom/xingbook/b/k;

    move-result-object v0

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->b(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v0}, Lcom/xingbook/b/k;->u()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->d(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->c(Lcom/xingbook/ui/InsetVideoView;)Lcom/xingbook/b/k;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/xingbook/b/k;->a(Z)Ljava/lang/String;

    move-result-object v0

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->d(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v1

    const/4 v2, -0x1

    const/4 v5, 0x0

    move v4, v3

    invoke-static/range {v0 .. v5}, Lcom/xingbook/c/k;->a(Ljava/lang/String;Landroid/widget/ImageView;IZZF)V

    goto :goto_1

    :pswitch_3
    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->e(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v4, "\u70b9\u51fb\u91cd\u65b0\u52a0\u8f7d"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->a(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    :pswitch_4
    iget v0, p1, Landroid/os/Message;->arg1:I

    if-ne v0, v4, :cond_1

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setSelected(Z)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->d(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_1

    :pswitch_5
    invoke-virtual {v1}, Lcom/xingbook/ui/InsetVideoView;->getContext()Landroid/content/Context;

    move-result-object v2

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v0, "\u6253\u5f00\u5931\u8d25\uff1a"

    invoke-direct {v4, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    instance-of v0, v0, Ljava/io/IOException;

    if-eqz v0, :cond_2

    const-string v0, "IO\u9519\u8bef"

    :goto_2
    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setSelected(Z)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->d(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_1

    :cond_2
    const-string v0, "IA\u9519\u8bef"

    goto :goto_2

    :pswitch_6
    invoke-virtual {v1}, Lcom/xingbook/ui/InsetVideoView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v2, "\u89c6\u9891\u8fde\u63a5\u65e0\u6548\uff0c\u8bf7\u8054\u7cfb\u5de5\u4f5c\u4eba\u5458"

    invoke-static {v0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setSelected(Z)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->d(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_1

    :pswitch_7
    invoke-virtual {v1}, Lcom/xingbook/ui/InsetVideoView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v2, "\u5373\u5c06\u64ad\u653e\uff0c\u8bf7\u7a0d\u5019\u00b7\u00b7\u00b7"

    invoke-static {v0, v2, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setSelected(Z)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->d(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_1

    :pswitch_8
    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setSelected(Z)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->d(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    iget v0, p1, Landroid/os/Message;->arg1:I

    const/16 v2, 0xc8

    if-ne v0, v2, :cond_3

    invoke-virtual {v1}, Lcom/xingbook/ui/InsetVideoView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "\u89c6\u9891\u683c\u5f0f\u4e0d\u652f\u6301\uff0c\u8bf7\u8054\u7cfb\u5de5\u4f5c\u4eba\u5458"

    invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    :cond_3
    invoke-virtual {v1}, Lcom/xingbook/ui/InsetVideoView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "\u672a\u77e5\u9519\u8bef\u65e0\u6cd5\u64ad\u653e"

    invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    :pswitch_9
    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setSelected(Z)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->f(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-static {v1}, Lcom/xingbook/ui/InsetVideoView;->d(Lcom/xingbook/ui/InsetVideoView;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_0
    .end packed-switch
.end method
